<?php
/**
 * Created by xiaosong
 * E-mail:4155433@gmail.com
 * Date: 2019/10/9
 * Time: 11:48
 */

namespace App\Models\exams\observe;


use App\Models\exams\Question;

class QuestionObserve
{
    public function creating(Question $question)
    {
        $id   = $question::orderBy('id','desc')->value('id');

    }

    public function saving(Question $question)
    {
        $question->answer = rtrim(implode(',',$question->answer),',');
    }

    public function created(Question $question)
    {

    }


    public function updated(Question $question)
    {

    }

}